package com.un.ebs.customer.dto;

import com.un.ebs.core.metadata.Resource;
import com.un.ebs.core.metadata.ResourceType;
import com.un.ebs.customer.CustomerConfigureCode;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * <p>
 * Add dto.
 * </p>
 *
 * @author liubo
 * @since 2019-09-24
 */
@Data
public class CustomerAddDto {

    @NotNull(message = "客户名称不能为空。")
    private String name;

    private String idNumber;

    private Date birthday;

    private Integer sex;

    @NotNull(message = "手机号码不能为空。")
    private String phone;

    private String address;

    private String otherName;

    private String otherPhone;

    private String wechatId;

    private String email;

    private Integer provinceId;

    private Integer cityId;

    private Integer countyId;

    private String personnelId;

    @NotNull(message = "客户来源不能为空。")
    @Resource(key = CustomerConfigureCode.customer_source_dict, type = ResourceType.Dictionary)
    private String sourceDict;

    @NotNull(message = "客户级别不能为空。")
    @Resource(key = CustomerConfigureCode.customer_level, type = ResourceType.Dictionary)
    private String levelDict;

    private String userId;

    /**
     * 介绍人
     */
    private String suggestCustomerId;

    private String remark;

}